
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="no-js" lang="">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="__HOME_CSS__/newdsn/css/jquery-ui.css">
        <link rel="stylesheet" href="__HOME_CSS__/newdsn/css/admin.css">
        <script type="text/javascript" src="__HOME_JS__/js/jquery-1.11.3.min.js"></script>
        <script type="text/javascript" src="__HOME_JS__/js/laydate/laydate.min.js"></script>
        <script type="text/javascript" src="__HOME_JS__/newdsn/js/cash/admin_content.js"></script>
        <script type="text/javascript" src="__HOME_JS__/js/jquery-ui/jquery-ui.js"></script>
    <script type="text/javascript" src="__HOME_JS__/js/dialog.js"></script>
    <script type="text/javascript" src="__HOME_JS__/js/libs.js"></script>
    <script type="text/javascript" src="__HOME_CSS__/newdsn/js/cash/common.js"></script>
    <script type="text/javascript" src="__HOME_CSS__/newdsn/js/cash/index.js"></script>
    <script type="text/javascript">var MIN_AMOUNT=100;</script>
    <script type="text/javascript" src="__HOME_CSS__/newdsn/js/cash/deposit.js"></script>
    </head>
    <body id="bodyid" class="skin_blue">

<div class="bannercontainer">
  <div class="banner">
    <div class="avatar"></div>
    <div class="text1">
      <script language="javaScript">
        now = new Date(), hour = now.getHours()
        if (hour < 6) {
          document.write("凌晨好")
        } else if (hour < 9) {
          document.write("早上好")
        } else if (hour < 12) {
          document.write("上午好")
        } else if (hour < 14) {
          document.write("中午好")
        } else if (hour < 17) {
          document.write("下午好")
        } else if (hour < 19) {
          document.write("傍晚好")
        } else if (hour < 22) {
          document.write("晚上好")
        } else {
          document.write("夜里好")
        }
        $(function() {
        //设置当前页菜单默认值
        var curLocation = location.href.split("/");
        var curPageName = curLocation.slice(curLocation.length-1, curLocation.length).toString(String).split(".").slice(0, 1).toString(String).toLowerCase().split("?")[0];
        var webMenu = $(".subnavigation div");
        switch(curPageName){
          case "":        webMenu.eq(0).addClass("subitmactive");webMenu.eq(3).addClass("arrow1");break;
          case "deposit":     webMenu.eq(0).addClass("subitmactive");webMenu.eq(3).addClass("arrow1");break;
          case "withdrawal":    webMenu.eq(1).addClass("subitmactive");webMenu.eq(3).addClass("arrow2");break;
          case "transfer":    webMenu.eq(2).addClass("subitmactive");webMenu.eq(3).addClass("arrow3");break;
        }
        })
      </script>
      , <span class="blue">{$info.member_name}</span>
    </div>
    <div class="text2">
      最后登录：<?php echo date('Y-m-d H:i:s',$info['last_login_time'])?><br> 
    </div>
    <div class="text3">欢迎来到金至尊娱乐，我们更专注彩票，博彩乐趣都在这里。</div>
    <div class="subnavigation">
      <div class="subitm subitmactive" onClick="location.href='deposit'">充值</div>
      <div class="subitm" onClick="location.href='withdrawal'">提款</div>
      <div class="subitm subitmlast" onClick="location.href='transfer'">交易记录</div>
      <div class="arrow1"></div>
    </div>

    <div class="showamount">
      <div class="saitm1 gradientbg">中心钱包</div>
      <div class="saitm2 gradientbg pink"><span class="balanceCount">{$info.member_money}</span> | <span class="freezeCount">{$info.member_f_money}</span></div>
      <div class="refresh" onclick="location.reload()"></div>

    </div>
  </div>
</div>
<script type="text/javascript" src="/newdsn/js/cash/loadAccount.js"></script>                <div class="rightpanel">
                <div class="contentcontainer">
         
               
                  <div class="row" style="overflow: visible;">
                  
                      <!-- tabbox1 -->
                        <div class="tabbox clearfix subcontent" style="display: block;">
             
						 <div class="row">
                                    <div class="col1">支付账户：</div>
                                    <div class="col2">
									<select id="bank">
									<foreach name="payment" item="vo" key="k">
									<option value="{$vo.code}"<?php if($k==0){?>selected<?php }?> data-value="{$vo.id}">{$vo.name}</option>
									</foreach>
									</select>
                                    <div class="pink" id="bank_id">{$payment.0.code}</div></div>
                          </div>
                          <div class="row">
                                    <div class="col1">充值金额：</div>
                                    <div class="col2"><input name="amount" onkeypress="return isNumber(event)" type="text" class="textbox2">
                                    <img src="__HOME_CSS__/newdsn/images/admin/warningsmallicon.jpg" class="mt4 ml10"/> <div class="pink mt4">请输入充值金额，最低金额100</div></div>
                          </div>
                          <!-- <div class="row clearfix">
                                    <div class="col1">转账凭证：</div>
                            <div class="col2">
                                <div class="selectbox">
								 <input type="hidden" id="imgPreview" value="">
                                            <input type="file"  name="screenshot"id="file" value="" class=""onchange="loadImageFile('file','imgPreview')">
                                            
                                </div>
                            </div>
                            
                          </div> -->
						 
              <div class="row smtxt">
              <div class="col1"></div>
              <div class="col2"><span style="color: red">温馨提示：转账金额带小数点，方便管理员对账。比如：100.08元。</span></div>
              </div>
			  <div class="row">
                                    <div class="col1">备注：</div>
                                    <div class="col2">
									<textarea name="remark" id="remark"style="margin: 0px; width: 442px; height: 134px;"></textarea>
                                    <img src="__HOME_CSS__/newdsn/images/admin/warningsmallicon.jpg" class="mt4 ml10"/> <div class="pink mt4">请输入充值账号信息，方便客服验证</div></div>
                          </div>
                          <div class="row mt15">
                                <div class="col1"></div>
                                <div class="col2">
                                <button class="btnsubmit">开始充值</button>
                                </div>
                            </div>
                      
                        </div>
                    
                  </div>
				   <foreach name="payment" item="vo" key="k">
						     <?php if($vo['qr_code']!=''){?>
						    <div style="margin-top:-276px;margin-right:50px;float:right;<?php if($k!=0){?>display:none<?php }?>"class="show row"  id="show<?php echo $vo['id']?>">
                              
                                    <img src=" <?php echo $vo['qr_code']?>" style="width:210px; height:210px"/> 
									
                          </div>
						  <?php }?> 
						  </foreach>
				  
				  <script>
				  $(function(){
				  
				  $("#bank").change(function(){
					var id=$("#bank option:selected").attr("value");
					var show_id=$("#bank option:selected").attr("data-value");
					$("#bank_id").html(id);
						$(".show").hide();
					$("#show"+show_id).show();
				
						})
						$(".btnsubmit").click(function(){
						
			var b = Number($("input[name=amount]").val());
			//var text=$("#bank_id").text();
			var f =$("#imgPreview").val();
			var remark =$("#remark").val();
			if (isNaN(b) || b <= 0 || b < MIN_AMOUNT) {
				dialog.error("错误", "充值金额最少为" + Math.max(MIN_AMOUNT, 1) + "元");
			 return false
			}
			//if(f==''){
			//	  dialog.error("错误", "请上传转账凭证");
			//		return false
			//}
			$.post('/index.php/Payment/deposit',{remark:remark,amount:b},function(e){
			if(e.status==1){
			     // dialog.alert("消息", e.message);
                        window.location.href = "transfer";
                        return
			}else{
			
			  dialog.error("错误", e.message);
					return false
			}
			},'json')
				})
				  })
				  </script>
                  
              </div>

          </div>
		 
    <script>
oFReader = new FileReader(), rFilter = /^(?:image\/bmp|image\/cis\-cod|image\/gif|image\/ief|image\/jpeg|image\/jpeg|image\/jpeg|image\/pipeg|image\/png|image\/svg\+xml|image\/tiff|image\/x\-cmu\-raster|image\/x\-cmx|image\/x\-icon|image\/x\-portable\-anymap|image\/x\-portable\-bitmap|image\/x\-portable\-graymap|image\/x\-portable\-pixmap|image\/x\-rgb|image\/x\-xbitmap|image\/x\-xpixmap|image\/x\-xwindowdump)$/i;

function loadImageFile(file,imgPreview) {
	if (document.getElementById(file).files.length === 0) {return;}
	var oFile = document.getElementById(file).files[0];
	if (!rFilter.test(oFile.type)) {
	 dialog.error("错误", "图片格式不正确");
	  return false
	
	}
	oFReader.readAsDataURL(oFile);
	oFReader.onload = function (oFREvent) {
		//document.getElementById(imgPreview).src = oFREvent.target.result;
		$("#imgPreview").val(oFREvent.target.result);
	};
}
</script>
    </body>
</html>